package dao;

import model.Item;

import java.sql.SQLException;
import java.util.List;

public interface ItemDao {
    //添加事项
    public boolean addItem(Item item) throws SQLException;
    //删除事项
    public boolean deleteItem(Item item) throws SQLException;
    //更新事项
    public boolean updateItem(Item item) throws SQLException;
    //查询事项
    public List<Item> queryItem(Item item) throws SQLException;
    //分页显示
    public List<Item> queryAll(Integer pageNum, Integer pageRow) throws SQLException;
}
